package com.relytosoft.mizar.media.common.entity.pojo.request.btdl.common;

import com.relytosoft.mizar.media.common.entity.algo.AyControlStructure;
import com.relytosoft.mizar.media.common.entity.pojo.base.BaseAlgoControlReq;
import io.swagger.annotations.ApiModel;

import java.util.List;

/**
 * @author wss
 * @version 1.0
 * @date 2022/5/26 17:54
 */
@ApiModel("btdl结构化布控对象")
public class BtdlStructureControlReq extends BaseAlgoControlReq {

    private List<Alarm> alarm;

    private String executeControlID;

    public List<Alarm> getAlarm() {
        return alarm;
    }

    public void setAlarm(List<Alarm> alarm) {
        this.alarm = alarm;
    }

    public String getExecuteControlID() {
        return executeControlID;
    }

    public void setExecuteControlID(String executeControlID) {
        this.executeControlID = executeControlID;
    }

    @Override
    public String toString() {
        return "BtdlStructureControlReq{" +
                "alarm=" + alarm +
                ", executeControlID='" + executeControlID + '\'' +
                '}';
    }

    @ApiModel("结构化布控上报报警对象")
    public class Alarm {
        private AyControlStructure alarmData;

        private int dataType;

        private String deviceID;

        private long recordTime;

        private double score;

        private String snapRecordID;

        public AyControlStructure getAlarmData() {
            return alarmData;
        }

        public void setAlarmData(AyControlStructure alarmData) {
            this.alarmData = alarmData;
        }

        public int getDataType() {
            return dataType;
        }

        public void setDataType(int dataType) {
            this.dataType = dataType;
        }

        public String getDeviceID() {
            return deviceID;
        }

        public void setDeviceID(String deviceID) {
            this.deviceID = deviceID;
        }

        public long getRecordTime() {
            return recordTime;
        }

        public void setRecordTime(long recordTime) {
            this.recordTime = recordTime;
        }

        public double getScore() {
            return score;
        }

        public void setScore(double score) {
            this.score = score;
        }

        public String getSnapRecordID() {
            return snapRecordID;
        }

        public void setSnapRecordID(String snapRecordID) {
            this.snapRecordID = snapRecordID;
        }

        @Override
        public String toString() {
            return "Alarm{" +
                    "alarmData=" + alarmData +
                    ", dataType=" + dataType +
                    ", deviceID='" + deviceID + '\'' +
                    ", recordTime=" + recordTime +
                    ", score=" + score +
                    ", snapRecordID='" + snapRecordID + '\'' +
                    '}';
        }
    }
}
